<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .resize {
            width: 100px;
            border: 5px solid;
            overflow: auto;
            resize: both
        }
        
        .border-box {
            width: 300px;
            height: 200px;
            box-sizing: border-box;
            padding: 50px;
            border: 20px solid black;
            background: yellow;
        }
    </style>
</head>

<body>
    <div class="resize">45453</div>
    <div class="border-box"></div>
</body>

</html>